basic-test: Fixup mtime check for bare-user
authorColin Walters <walters@verbum.org>
Wed, 17 Dec 2014 16:34:10 +0000 (11:34 -0500)
committerColin Walters <walters@verbum.org>
Wed, 17 Dec 2014 16:34:10 +0000 (11:34 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=741662

tests/basic-test.sh

index a9a9502f9dbb1f3be428b19462c5e7090a245d44..d097a320c51a992df7a67e1d1117ce8b4bcdca8f 100755 (executable)
@@ -338,7 +338,11 @@ echo "ok remote show-url"
 
 cd ${test_tmpdir}
 rm -rf test2-checkout
-$OSTREE checkout test2 test2-checkout
+if grep bare-user repo/config; then
+    $OSTREE checkout -U test2 test2-checkout
+else
+    $OSTREE checkout test2 test2-checkout
+fi
 stat '--format=%Y' test2-checkout/baz/cow > cow-mtime
 assert_file_has_content cow-mtime 0
 echo "ok content mtime"